//
//  ViewController.m
//  22-SDWebImage
//
//  Created by mafeng on 16/8/12.
//  Copyright © 2016年 mafeng. All rights reserved.
//

#import "ViewController.h"
#import "UIImageView+WebCache.h"
@interface ViewController ()

@property (weak, nonatomic) IBOutlet UIImageView *sdImageViewTest;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    [_sdImageViewTest sd_setImageWithURL:[NSURL URLWithString:@"http://www.lingyu.me/wp-content/uploads/2016/08/www.lingyu.me_20160808081654350.jpg"] placeholderImage:[UIImage imageNamed:@"ptw.jpg"] options:SDWebImageAvoidAutoSetImage completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
        
        
    }];
    NSLog(@"%@", NSHomeDirectory());
    
    
    
    
    
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
